package top.tomxwd.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import top.tomxwd.myrule.MyDeptRuleConfig;

/**
 * @author xieweidu
 * @createDate 2020-06-05 23:13
 */
@SpringBootApplication
@EnableEurekaClient // 开启Eureka客户端
@RibbonClient(name = "SPRINGCLOUD-DEPT-PV", configuration = MyDeptRuleConfig.class) // 在微服务启动的时候就能加载自定义的Rule类
public class DeptOp_80 {

    public static void main(String[] args) {
        SpringApplication.run(DeptOp_80.class, args);
    }

}
